package com.nsoft.server.register.beans;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class GcDetailsPK implements Serializable {
	@Column(name="gcd_num_id")
	private int gcdNumId;

	@Column(name="gcd_num_gcid")
	private int gcdNumGcid;

	private static final long serialVersionUID = 1L;

	public GcDetailsPK() {
		super();
	}

	public int getGcdNumId() {
		return this.gcdNumId;
	}

	public void setGcdNumId(int gcdNumId) {
		this.gcdNumId = gcdNumId;
	}

	public int getGcdNumGcid() {
		return this.gcdNumGcid;
	}

	public void setGcdNumGcid(int gcdNumGcid) {
		this.gcdNumGcid = gcdNumGcid;
	}

	@Override
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		}
		if ( ! (o instanceof GcDetailsPK)) {
			return false;
		}
		GcDetailsPK other = (GcDetailsPK) o;
		return (this.gcdNumId == other.gcdNumId)
			&& (this.gcdNumGcid == other.gcdNumGcid);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.gcdNumId;
		hash = hash * prime + this.gcdNumGcid;
		return hash;
	}

}
